package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 轮播图对象 tmc_top_banner
 * 
 * @author ruoyi
 * @date 2021-04-08
 */
public class TmcTopBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 跳转类型 */
    @Excel(name = "跳转类型")
    private Long jumptype;

    /** 链接 */
    @Excel(name = "链接")
    private String link;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageurl;

    /** 状态，0显示，1隐藏 */
    @Excel(name = "状态，0显示，1隐藏")
    private Long state;

    /** 排序号 */
    @Excel(name = "排序号")
    private Long ordernum;

    /**创建时间*/
    @Excel(name = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setJumptype(Long jumptype) 
    {
        this.jumptype = jumptype;
    }

    public Long getJumptype() 
    {
        return jumptype;
    }
    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setImageurl(String imageurl) 
    {
        this.imageurl = imageurl;
    }

    public String getImageurl() 
    {
        return imageurl;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setOrdernum(Long ordernum) 
    {
        this.ordernum = ordernum;
    }

    public Long getOrdernum() 
    {
        return ordernum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("jumptype", getJumptype())
            .append("link", getLink())
            .append("content", getContent())
            .append("imageurl", getImageurl())
            .append("state", getState())
            .append("ordernum", getOrdernum())
            .append("createtime", getCreatetime())
            .toString();
    }
}
